<?php

class HomeController extends BaseController {

	/*
	|--------------------------------------------------------------------------
	| Default Home Controller
	|--------------------------------------------------------------------------
	|
	| You may wish to use controllers instead of, or in addition to, Closure
	| based routes. That's great! Here is an example controller method to
	| get you started. To route to this controller, just add the route:
	|
	|	Route::get('/', 'HomeController@showWelcome');
	|
	*/

	public function showWelcome($path = null)
	{
//            $url = "Location: http://www.maxfinance.com.au/preapp-process.php?";
//            foreach($_GET as $name => $val){
//                $url= $url.$name."=".json_encode($val);
//            }
//            header($url);
//            exit();
            
        if (!$path) {
            $path = 'hello';
        } else {
            $path = "test.{$path}";
        }
        return View::make($path);
	}

}
